﻿import type { AppRouteRecord } from '@/types/router';

export const homeRoutes: AppRouteRecord = {
    path: '/home',
    name: 'Home',
    component: '/index/index',
    meta: {
        title: 'menus.article.title',
        icon: '&#xe7ae;',
        roles: ['R_SUPER', 'R_ADMIN'],
    },
    children: [
        {
            path: 'home-sys',
            name: 'homeSys',
            component: '/home/sys',
            meta: {
                title: 'menus.article.articleList',
                keepAlive: true,
                authList: [
                    { title: '新增', authMark: 'add' },
                    { title: '编辑', authMark: 'edit' },
                ],
            },
        },
        {
            path: 'home-user',
            name: 'homeUser',
            component: '/home/user',
            meta: {
                title: 'menus.article.articleList',
                keepAlive: true,
                authList: [
                    { title: '新增', authMark: 'add' },
                    { title: '编辑', authMark: 'edit' },
                ],
            },
        },
    ],
};
